package com.neu.cloudfactory.repository;

import com.neu.cloudfactory.bean.User.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;


public interface UserRepository extends JpaRepository<User,Integer> {
    Page<User> findAllByIdOrNameContainingOrAccountContainingOrConnectionContaining(Integer id,String search1,String search2,String search3,Pageable pageable);
    boolean existsByAccount(String account);
    Optional<User> findByAccount(String account);
}
